//
//  CalendarView.h
//  SanYiTeaching
//
//  Created by 李文强 on 2019/4/4.
//  Copyright © 2019 李文强. All rights reserved.
//

#import <UIKit/UIKit.h>
#import "GFCalendar.h"


NS_ASSUME_NONNULL_BEGIN
@protocol CalendarBlockDelegate <NSObject>

- (void)getCalenderDate:(NSString *)date;

@end

typedef void(^GetDateSuccessBlock)(NSString *date);
@interface CalendarView : UIViewController
@property (nonatomic, strong) UIButton *confirmBtn;
//类型
@property (nonatomic, assign) BOOL type;
@property (nonatomic, assign) id<CalendarBlockDelegate>delegate;

+(void)initWithDateWithFrame:(CGRect)frame andeSourceView:(UIView *)view andDelegate:(UIViewController *)controller andSuccessBlock:(GetDateSuccessBlock)success;
- (instancetype)initWithSetupCalendarViewBlock:(GetDateSuccessBlock)success;
@end

NS_ASSUME_NONNULL_END
